package com.alibaba.citrus.ots.price.sdo.activity;

import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

/**
 * @author hanguo
 * @date 2021/10/14
 * @Description 活动抬头信息数据
 */
@Data
public class ActivityTitleSDO implements Serializable {
    private static final long serialVersionUID = -4741557683803649346L;

    private String activityId;

    private String salesOrganization;

    private String salesChannel;

    private String activityNoteId;

    private String activityNoteName;

    private String activityFacadeCode;

    private String clientId;

    private Long applyFee;

    private String currency;

    private Date activityStartDate;

    private Date activityEndDate;

    /**
     * 订单开始时间，这个是给交货使用的
     */
    private Date orderStartDate;
    /**
     * 订单结束时间，是给交货使用的
     */
    private Date orderEndDate;

    private String verificationPattern;

    private String activityStatus;

    private String controlByGroupFlag;

    private String outlaySubject;

    private String statusRemark;

    private String features;

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof ActivityTitleSDO)) {
            return false;
        }
        ActivityTitleSDO that = (ActivityTitleSDO) o;
        return getActivityId().equals(that.getActivityId());
    }

    @Override
    public int hashCode() {
        return Objects.hash(getActivityId());
    }
}
